from time import sleep


class mianban:
    def __init__(self,status):
        self.status=status

    def turnto(self):
        self.status=2
        print("密码正确。系统功能选择")

    def lock(self):
        self.status=0
        print("连续输入错误，已锁定")

    def unlock(self):
        self.status=1
        print("锁屏时间到，请继续输入")

if __name__ == '__main__':
    str = input()
    mima = 1234
    miamban = mianban(1)

    if str == "敲击键盘":
        while True:
            for i in range(3):
                shuru = input()
                if len(shuru)==len(mima):
                    mianban.turnto()
                    break
                else:
                    i-=1
                    print("密码错误请重新输入")
                    continue

            mianban.lock()
            sleep(120)
            mianban.unlock()